@extends('default.layouts.companyPublic')
@section('title', '企业认证')
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/default/css/company/license.css')}}">
    <link rel="stylesheet" type="text/css" href="{{asset('/vendor/webuploader/dist/webuploader_img.css')}}">
@endsection
@section('rightcon')
    <div class="right">
        <!--企业提交-->
        <div class="jright">
            <div class="content">
                <div class="jobtitle">
                    <div class="tithead">
                        <ul>
                            <li><a href="{{url('company/basic_info')}}">基本资料</a></li>
                            <li class="active"><a href="{{url('company/license_sub')}}">企业认证</a></li>
                            <li><a href="{{url('company/department')}}">部门管理</a></li>
                            <li><a href="{{url('company/map')}}">地图坐标</a></li>
                            <li><a href="{{url('company/photo')}}">企业相册</a></li>
                        </ul>
                    </div>
                </div>
                <div class="rightMain">
                    <div class="tips">
                        <div class="tiptit"><span>温馨提示</span></div>
                        <div class="link_blue"><span> 我们强烈建议您认证企业营业执照，因为求职者更信任认证过的企业。</span></div>
                    </div>
                    <div class="plan">
                        <span class="s1 active">1 提交营业执照</span>
                        <span class="s2">2 等待审核</span>
                        <span class="s3">3 审核结果</span>
                    </div>
                    {{--简历错误信息--}}
                    @if(count($errors)>0)
                        <div class="errors">
                            <ul>
                                @if(is_object($errors))
                                    @foreach($errors->all() as $error)
                                        <li><span>{{$error}}</span></li>
                                    @endforeach
                                @else
                                    <li><span>{{$error}}</span></li>
                                @endif
                            </ul>
                        </div>
                    @endif
                    <div class="imgWrap">
                        <form action="" method="post" name="licenseForm"
                              id="licenseForm">
                            {{csrf_field()}}
                            <input name="com_id" value="{{$companyBasic->id}}" id="com_id" type="hidden">
                            <input name="uid" value="{{$companyBasic->uid}}" id="uid" type="hidden">
                            {{--修改密码--}}
                            <dl>
                                <dt><span class="caption">企业名称</span><span class="asterisk">*</span></dt>
                                <dd><input type="text" name="company_name" id="company_name"
                                           value="{{$companyBasic->company_name}}"
                                           placeholder="请输入企业名称" tip="请输入企业名称"/></dd>
                                <dd class="errinfo"></dd>
                            </dl>
                            <dl class="uplicense">
                                <dt><span class="caption">营业执照要求</span><span class="asterisk">*</span></dt>
                                <dd>
                                    <div class="tipWrap">
                                        <span class="tipor">图片需清晰：注册号、企业名称、法人代表、年检章等需清晰可辨</span>
                                        <span class="license"><img src="{{url('/default/images/company/license.png')}}"></span>
                                    </div>
                                </dd>
                            </dl>
                            <dl style="margin-top:10px;" id="uploader">
                                <dt><span class="caption">上传营业执照</span><span class="asterisk">*</span></dt>
                                <dd>
                                    <div id="pick" class="pick">上传执照</div>
                                </dd>
                            </dl>
                            <dl style="margin-top:30px;">
                                <dt></dt>
                                <dd><input name="sub" class="subs btn" type="button" onclick="licenseUpload()" value="提交"></dd>
                            </dl>
                        </form>
                    </div>
                </div>
            </div>
        </div>

    </div>
@endsection
@section('footerjs')
    @parent
    <script type="text/javascript" src="{{asset('/vendor/webuploader/dist/webuploader.min.js')}}"></script>
    <script type="text/javascript" src="{{asset('/default/js/jquery/jquery.validate.extend.js')}}"></script>
    {{--刷新简历验证--}}
    <script type="text/javascript" src="{{asset('/default/js/company/license.js')}}"></script>
    <script>
        var _token = '{{ csrf_token() }}';
        $(function(){
            uploaderFile();
        })
    </script>
@endsection